load("//eden/scm:targets.bzl", "rust_python_library")

oncall("sapling")

rust_python_library(
    name = "pycext",
    srcs = glob(["src/**/*.rs"]),
    autocargo = {"cargo_toml_config": {"extra_buck_dependencies": {"build-dependencies": [
        "fbsource//third-party/rust:cc",
        "//eden/scm/lib/util/python-sysconfig:python-sysconfig",
    ]}}},
    crate_root = "src/lib.rs",
    include_python_sys = True,
    deps = [
        "//eden/scm:bser",
        "//eden/scm:traceprof",
        "//eden/scm/sapling/cext:bdiff",
        "//eden/scm/sapling/cext:evalframe",
        "//eden/scm/sapling/cext:mpatch",
        "//eden/scm/sapling/cext:osutil",
        "//eden/scm/sapling/cext:parsers",
    ],
)
